package com.ntd.study.modular.hutool;

import cn.hutool.core.lang.Console;
import com.ntd.study.protocol.socket.UtilSocketClient;

public class StudyThreadPool {
    public static void main(String[] args) {
        final UtilSocketClient localhost = new UtilSocketClient("localhost", 32222){
            @Override
            public void onMsg(byte[] b) {
                Console.log(b);
            }
        };
        localhost.sendMsg("测试数据".getBytes());

//        UtilThreadPool.scheduledThreadPool.execute(() -> {
//            try {
//                throw new Exception();
//            }catch (Exception e){
//                e.printStackTrace();
//            }
//        });
    }
}
